package cc.rengu.redp.bizimpl.igas.service;

import cc.rengu.redp.bizimpl.igas.domain.SDevBindInfo;
import cc.rengu.redp.bizimpl.igas.domain.SMchntBindInfo;
import cc.rengu.redp.bizimpl.igas.vo.SDevBindInfoVO;
import cc.rengu.redp.common.domain.QueryRequest;
import cc.rengu.redp.common.exception.RedpException;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author lizk
 */
public interface ISDevBindInfoService extends IService<SDevBindInfo> {

    IPage<SDevBindInfo> findByPage(QueryRequest queryRequest, SDevBindInfo sDevBindInfo);

    void createInfo(SDevBindInfo sDevBindInfo) throws RedpException;

    void updateInfo(SDevBindInfo sDevBindInfo) throws RedpException;

    void updateDevBindInfoStatus(SDevBindInfo sDevBindInfo) throws RedpException;

    boolean isExit(String bindDevId);

    void batchInsert(List<SDevBindInfoVO> data) throws RedpException;

    List<SMchntBindInfo> findBindUserId(String bindMchntNo);
}
